package com.market.domain.activity.service;

import com.market.domain.activity.model.entity.PartakeRaffleActivityEntity;
import com.market.domain.activity.model.entity.UserRaffleOrderEntity;

//抽奖活动参与接口
public interface IRaffleActivityPartakeService {

    /**
     * 创建抽奖单方法, 用户参与抽奖活动，扣减活动账户库存，产生抽奖单。如存在未被使用的抽奖单则直接返回已存在的抽奖单。
     */
    UserRaffleOrderEntity createOrder(PartakeRaffleActivityEntity partakeRaffleActivityEntity);

    UserRaffleOrderEntity createOrder(String userId, Long activityId);
}
